<?php
    $title = "تسجيل عميل جديد";
    include_once '../../Common/View/Header.php'; 
?>
<div id="site_content">
      
      <div id="content">
        <h1></h1>
        <form id="user_regestration" action="../Controller/C_AddNewCustomer.php" method="post"onsubmit="return validation()">
          <div class="form_settings">
            <p><b><span>نوع العميل</span></b>
                <select name="customerType" class="contact">
                    <option value="0">اختر</option>
                    <option value ="1">مستفيد</option>
                    <option value="2">مستثمر</option>
                </select>
            <font color="red">*</font><dev id='first_nameErr'></dev></p>
            <p><b><span>الاسم الاول</span></b><input class="contact" type="text" id="first_name" name="first_name" maxlength ="25" onblur="return isName('first_name')"/><font color="red">*</font><dev id='first_nameErr'></dev></p>
            <p><b><span>اسم الاب</span></b><input class="contact" type="text" name="father_name" maxlength ="25" onblur="return isName('father_name')"/><font color="red">*</font><dev id='father_nameErr'></dev></p>
            <p><b><span>العائلة</span></b><input class="contact" type="text" name="family_name" maxlength ="25" onblur="return isName('family_name')"/><font color="red">*</font><dev id='family_nameErr'></dev></p>
            <p><b><span>اسم المستخدم</span></b><input class="contact" type="text" name="username" maxlength ="15" onblur="return isUsername()"/><font color="red">*</font><dev id='UsernameErr'></dev></p>
            <p><b><span>كلمة المرور</span></b><input class="contact" type="password" name="password" maxlength ="15" onblur="return isPassword()"/><font color="red">*</font><dev id='PasswordErr'></dev></p>
            <p><b><span>تأكيد كلمة المرور</span></b><input class="contact" type="password" name="re_typed_password" maxlength ="15" onblur="return isReTypedPassword()"/><font color="red">*</font><dev id='ReTypedPasswordErr'></dev></p>
            <p><b><span>رقم الجوال</span></b><input class="contact" type="text" name="mobile" maxlength ="15" onblur="return isMobile()"/><font color="red">*</font><dev id='MobileErr'></dev></p>
            <p><b><span>البريد الالكتروني</span></b><input class="contact" type="text" name="email" onblur="return isEmail()"/><font color="red">*</font><dev id='EmailErr'></dev></p>
            <p style="padding-top: 15px"><span>&nbsp;</span><input class="submit" type="submit" name="user_submitted" value="تسجيل" /></p>
          </div>
        </form>
        <?php
            //session_start();
            include'../../Common/Model/ErrorMsg.php';
            if(isset($_SESSION['UserData'])){
                if($_SESSION['UserData']==true)
                {
                     echo '<br/><b><font color=green size=3>'.$correctData.'</font></b>';
                     unset($_SESSION['UserData']);                    
                }
                elseif($_SESSION['UserData']==false)
                {
                     echo '<br/><b><font color=red size=3>'.$incorrectData.'</font></b>';
                     unset($_SESSION['UserData']);                    
                }
            }
        ?>
      </div>
    </div>
<?php include_once '../../Common/View/Footer.php'; ?>